home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / TWIN0944.ZIP / TLSWITCH.TXT < prev    next >
Text File  |  1994-06-25  |  3KB  |  103 lines

  1.  
  2.  TLSWITCH.EXE Reads The START/END Times in TLSWITCH.DAT And Exits With A 
  3.   Errorlevel For BATCH Files
  4.   (Twin Line Also Reads The START/END Times in TLSWITCH.DAT And Will Exit  
  5.    When The Current Time Is NOT Between START & END)
  6.  
  7.   ERRORLEVELS
  8.      1   Current Time IS Between START & END  
  9.      2   Current Time IS NOT Between START & END
  10.    
  11.   Changing Times
  12.    Just EDIT TLSWITCH.DAT
  13.     1st Line is START Time
  14.     2nd Line is END Time
  15.    If You Wanted TwinLine To RUN From 6:00am to 10:30pm TLSWITCH.DAT Would
  16.     Look Like:
  17.      600
  18.      2230
  19.  
  20.   You Will Also Have To Set A EVENT (In the Mailer at START Time (ie 6:00am) 
  21.    So it EXITS And Runs RUN.BAT (TWiN LiNE Batch File)
  22.  
  23.  
  24.   BATCH FILES
  25.    You Will Two Batch Files For TWiN LiNE And A MAILER. TLSWITCH Must
  26.     Be Run Before The Mailer & Twin Line. 
  27.   
  28.   TLSWITCH WAIT
  29.   If You DON'T Want To Use A Mailer And Just Want To Run Twin Line
  30.    Lets Say 12Hrs A Day, Use The WAIT Option In TLSWITCH
  31.    (ie TLSWITCH WAIT), TlSwitch will now wait until The Current Time
  32.    Is Between START & END. You Will Also Only Need RUN.BAT.
  33.  
  34.   Demo OF RUN.BAT  (Batch For TWiN LiNE)
  35. ------------START Of RUN.BAT------------------------
  36. @ECHO OFF
  37. :Start
  38. rem            --- We end up here after every BBS call
  39. @ECHO OFF
  40. TLSWITCH
  41. if errorlevel 1 goto LoadTL
  42. RUN2.BAT
  43.  
  44. :LoadTL
  45. Twin A-Z
  46. @Echo off
  47. rem            --- Check Errorlevels From TWiN LiNE
  48. if errorlevel 100 goto end
  49. if errorlevel 20 goto onceaday
  50. if errorlevel 2 goto loadbbs
  51. if errorlevel 1 goto local
  52. if errorlevel 0 goto start
  53. goto end
  54.  
  55. :onceaday
  56. Onceaday.bat
  57. @ECHO OFF
  58. goto start
  59.  
  60.  
  61. :loadbbs
  62.   Load BBS software for Remote User (TWiN LiNE Writes TLRUNBBS.BAT)
  63. call tlrunbbs.bat
  64. @ECHO OFF
  65. goto start
  66.  
  67. :local
  68.   Load BBS software in Local Mode (TWiN LiNE Writes TLRUNBBS.BAT)
  69. call tlrunbbs.bat
  70. @ECHO OFF
  71. goto start
  72.  
  73. :END
  74.  
  75. ---------------------END Of Run.Bat-----------------
  76.  
  77.  
  78.   Demo OF RUN2.BAT  (Batch For Mailer)
  79. ------------START Of RUN2.BAT------------------------
  80.  
  81. @echo off
  82. rem            --- We Must end up here after every BBS call
  83. :loop
  84. TLSWITCH
  85. if errorlevel 2 goto loadFD
  86. RUN.BAT
  87.  
  88. :LoadFD
  89.  
  90. rem            --- Load Mailer Here
  91.  
  92. rem ---Please Read Mailer Manual For ErrorLevels/Batch File 
  93. rem ---setup ect..
  94.  
  95. ---------------------END Of Run2.Bat-----------------
  96.  
  97.  Any QUESTIONS??.. CALL DARK ZONE BBS (063)72-1260 & Give 1 Ring Signal 
  98.                                               (Running TWiN LiNE)
  99.                     NETMAiL: ITCnet 85:700/153
  100.                              FIDOnet 3:623/683
  101.     
  102.  
  103.